﻿package Common 
{
	/**
	 * ...
	 * @author Serg de Adelantado
	 */
	public class Constants 
	{
		//Server side depended variables
		static public var IMAGE_SIZE:int = 100;
		static public const IMAGE_QUALITY:int = 80;
		static public const IMAGES_ROOT:String = 'http://www.dikar-sochi.ru/images/';
		static public const SCRIPTS_ROOT:String = 'http://www.dikar-sochi.ru/php/';
		static public const AUTH_SCRIPT:String = 'http://www.dikar-sochi.ru/auth/';
		//static public const SCRIPTS_ROOT:String = 'http://localhost/Flash/PhotosUploader/php/';				
		//static public const IMAGES_ROOT:String = 'http://62.76.190.98/uploader/uploads/';
		//static public const SCRIPTS_ROOT:String = 'http://62.76.190.98/uploader/php/';
		
		static public const IMAGES_MAIN:String = IMAGES_ROOT + 'catalog/';
		static public const IMAGES_ROOMS:String = IMAGES_ROOT + 'nomer/';
		
		static public const MAIN_XML:String = SCRIPTS_ROOT + 'getImages.php';
		static public const IMAGE_UPLOADER:String = SCRIPTS_ROOT + 'uploadImage.php';
		static public const IMAGE_UPDATER:String = SCRIPTS_ROOT + 'updateImage.php';
		static public const IMAGE_DELETER:String = SCRIPTS_ROOT + 'deleteImage.php';
		static public const IMAGE_CREATOR:String = SCRIPTS_ROOT + 'createImage.php';
		static public const ALBUM_CREATOR:String = SCRIPTS_ROOT + 'createAlbum.php';
		static public const ALBUM_UPDATER:String = SCRIPTS_ROOT + 'updateAlbum.php';
		static public const ALBUM_DELETER:String = SCRIPTS_ROOT + 'deleteAlbum.php';		
			
		static public const OWNER_MAIN:int = 1;
		static public const OWNER_ROOM:int = 9;
		
		static public const INPUT_RESTRICT:String = 'А-я A-z 0-9\\І\\і\\,\\:\\-\\=\\!\\@\\#\\№\\)\\(\\+\\.\\/\\"';
		
		//static public const ALBUM_BACKGROUND:uint = 0xFFFFFF;
		static public const ALBUM_BACKGROUND:uint = 0xCCCCCC;
		static public const ALBUM_ALPHA:Number = 0.5;
		static public const ALBUM_HIGHLITE:uint = 0xFFFFFF;
		static public const ALBUM_HIGHLITE_ALPHA:Number = 0.8;
		static public const ALBUM_TEXT:uint = 0;
		
		static public const DESCRIPTION_BACKGROUND:uint = 0xFFFFFF;
		static public const DESCRIPTION_BACKGROUND_LOCAL:uint = 0xFFFF66;
		static public const DESCRIPTION_ALPHA:Number = 0.5;
		static public const DESCRIPTION_TEXT_COLOR_DEFAULT:uint = 0x666666;
		static public const DESCRIPTION_TEXT_COLOR:uint = 0;
		static public const DESCRIPTION_CAPTION_DEFAULT:String = 'Нет описания';
		
		static public const IMAGE_BACKGROUND:uint = 0xCCCCCC;		
		static public const IMAGE_SELECTED:uint = 0xFFFFFF;
		
		static public const IMAGE_TOOLS_BACKGROUND:uint = 0;
		static public const IMAGE_TOOLS_ALPHA:Number = 0.75;
		
		static public const MESSAGES_BACKGROUND:uint = 0x333333;
		static public const MESSAGES_BACKGROUND_ALPHA:Number = 0.5;
		
		static public const MESSAGE_BACKGROUND:uint = 0xFFFFFF;
		static public const MESSAGE_HEADER_COLOR:uint = 0;
		static public const MESSAGE_BACKGROUND_ALPHA:Number = 0.75;		
		
		public function Constants() 
		{			
		}		
	}
}